package com.whmskj.xjlhsc.schedul;

import cn.hutool.extra.spring.SpringUtil;

import java.util.concurrent.ThreadPoolExecutor;

public interface Task {

    String IO_THREADPOOL = "ioIntensiveThreadPool";

    void taskGenerate();


    default ThreadPoolExecutor getExecutor() {
        return SpringUtil.getBean(IO_THREADPOOL);
    }
}
